﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="Hoadonnhap" targetNamespace="http://tempuri.org/Hoadonnhap.xsd" xmlns:mstns="http://tempuri.org/Hoadonnhap.xsd" xmlns="http://tempuri.org/Hoadonnhap.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="QuanLyNhaSachConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="QuanLyNhaSachConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.quanlynhasach.Properties.Settings.GlobalReference.Default.QuanLyNhaSachConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ChiTietPhieuNhapTableAdapter" GeneratorDataComponentClassName="ChiTietPhieuNhapTableAdapter" Name="ChiTietPhieuNhap" UserDataComponentName="ChiTietPhieuNhapTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="QuanLyNhaSachConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, A.MaPhieuNhap,  A.SoLuong, A.DonGia, ThanhTien, A.DonVi,A.Thue, B.MaNV, B.TongTien, B.NhaCungCap, C.TenSach FROM dbo.ChiTietPhieuNhap A, dbo.PhieuNhap B, dbo.Sach C where A.MaPhieuNhap=B.MaPhieuNhap and  A.MaSach=C.MaSach and A.MaPhieuNhap=@MaPhieuNhap</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="MaPhieuNhap" ColumnName="MaPhieuNhap" DataSourceName="QuanLyNhaSach.dbo.ChiTietPhieuNhap" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@MaPhieuNhap" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="MaPhieuNhap" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="MaPhieuNhap" DataSetColumn="MaPhieuNhap" />
              <Mapping SourceColumn="SoLuong" DataSetColumn="SoLuong" />
              <Mapping SourceColumn="DonGia" DataSetColumn="DonGia" />
              <Mapping SourceColumn="ThanhTien" DataSetColumn="ThanhTien" />
              <Mapping SourceColumn="DonVi" DataSetColumn="DonVi" />
              <Mapping SourceColumn="Thue" DataSetColumn="Thue" />
              <Mapping SourceColumn="MaNV" DataSetColumn="MaNV" />
              <Mapping SourceColumn="TongTien" DataSetColumn="TongTien" />
              <Mapping SourceColumn="NhaCungCap" DataSetColumn="NhaCungCap" />
              <Mapping SourceColumn="TenSach" DataSetColumn="TenSach" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PhieuNhapTableAdapter" GeneratorDataComponentClassName="PhieuNhapTableAdapter" Name="PhieuNhap" UserDataComponentName="PhieuNhapTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="QuanLyNhaSachConnectionString (Settings)" DbObjectName="QuanLyNhaSach.dbo.PhieuNhap" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[PhieuNhap] WHERE (([MaPhieuNhap] = @Original_MaPhieuNhap) AND ([MaNV] = @Original_MaNV) AND ([TongTien] = @Original_TongTien) AND ([Ngay] = @Original_Ngay) AND ((@IsNull_NhaCungCap = 1 AND [NhaCungCap] IS NULL) OR ([NhaCungCap] = @Original_NhaCungCap)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MaPhieuNhap" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaPhieuNhap" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MaNV" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaNV" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_TongTien" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TongTien" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Ngay" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Ngay" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NhaCungCap" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NhaCungCap" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_NhaCungCap" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="NhaCungCap" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[PhieuNhap] ([MaPhieuNhap], [MaNV], [TongTien], [Ngay], [NhaCungCap]) VALUES (@MaPhieuNhap, @MaNV, @TongTien, @Ngay, @NhaCungCap);
SELECT MaPhieuNhap, MaNV, TongTien, Ngay, NhaCungCap FROM PhieuNhap WHERE (MaPhieuNhap = @MaPhieuNhap)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MaPhieuNhap" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaPhieuNhap" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MaNV" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaNV" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@TongTien" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TongTien" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Ngay" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Ngay" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@NhaCungCap" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="NhaCungCap" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT MaPhieuNhap, MaNV, TongTien, Ngay, NhaCungCap FROM dbo.PhieuNhap</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[PhieuNhap] SET [MaPhieuNhap] = @MaPhieuNhap, [MaNV] = @MaNV, [TongTien] = @TongTien, [Ngay] = @Ngay, [NhaCungCap] = @NhaCungCap WHERE (([MaPhieuNhap] = @Original_MaPhieuNhap) AND ([MaNV] = @Original_MaNV) AND ([TongTien] = @Original_TongTien) AND ([Ngay] = @Original_Ngay) AND ((@IsNull_NhaCungCap = 1 AND [NhaCungCap] IS NULL) OR ([NhaCungCap] = @Original_NhaCungCap)));
SELECT MaPhieuNhap, MaNV, TongTien, Ngay, NhaCungCap FROM PhieuNhap WHERE (MaPhieuNhap = @MaPhieuNhap)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MaPhieuNhap" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaPhieuNhap" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MaNV" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaNV" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@TongTien" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TongTien" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Ngay" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Ngay" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@NhaCungCap" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="NhaCungCap" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MaPhieuNhap" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaPhieuNhap" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MaNV" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaNV" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_TongTien" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TongTien" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_Ngay" Precision="0" ProviderType="SmallDateTime" Scale="0" Size="0" SourceColumn="Ngay" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_NhaCungCap" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="NhaCungCap" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_NhaCungCap" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="NhaCungCap" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="MaPhieuNhap" DataSetColumn="MaPhieuNhap" />
              <Mapping SourceColumn="MaNV" DataSetColumn="MaNV" />
              <Mapping SourceColumn="TongTien" DataSetColumn="TongTien" />
              <Mapping SourceColumn="Ngay" DataSetColumn="Ngay" />
              <Mapping SourceColumn="NhaCungCap" DataSetColumn="NhaCungCap" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SachTableAdapter" GeneratorDataComponentClassName="SachTableAdapter" Name="Sach" UserDataComponentName="SachTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="QuanLyNhaSachConnectionString (Settings)" DbObjectName="QuanLyNhaSach.dbo.Sach" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Sach] WHERE (([MaSach] = @Original_MaSach) AND ([TenSach] = @Original_TenSach) AND ([GiaMua] = @Original_GiaMua) AND ([GiaBan] = @Original_GiaBan) AND ((@IsNull_DonVi = 1 AND [DonVi] IS NULL) OR ([DonVi] = @Original_DonVi)) AND ([NhaCungCap] = @Original_NhaCungCap) AND ((@IsNull_TenTG = 1 AND [TenTG] IS NULL) OR ([TenTG] = @Original_TenTG)) AND ((@IsNull_MaTL = 1 AND [MaTL] IS NULL) OR ([MaTL] = @Original_MaTL)) AND ((@IsNull_Thue = 1 AND [Thue] IS NULL) OR ([Thue] = @Original_Thue)) AND ([SoLuong] = @Original_SoLuong))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MaSach" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaSach" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_TenSach" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TenSach" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GiaMua" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GiaMua" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GiaBan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GiaBan" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DonVi" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DonVi" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_DonVi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DonVi" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_NhaCungCap" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="NhaCungCap" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TenTG" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TenTG" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_TenTG" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TenTG" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MaTL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaTL" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MaTL" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaTL" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Thue" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Thue" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Thue" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Thue" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SoLuong" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SoLuong" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Sach] ([MaSach], [TenSach], [GiaMua], [GiaBan], [DonVi], [NhaCungCap], [TenTG], [MaTL], [Thue], [SoLuong]) VALUES (@MaSach, @TenSach, @GiaMua, @GiaBan, @DonVi, @NhaCungCap, @TenTG, @MaTL, @Thue, @SoLuong);
SELECT MaSach, TenSach, GiaMua, GiaBan, DonVi, NhaCungCap, TenTG, MaTL, Thue, SoLuong FROM Sach WHERE (MaSach = @MaSach)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MaSach" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaSach" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@TenSach" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TenSach" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GiaMua" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GiaMua" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GiaBan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GiaBan" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@DonVi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DonVi" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@NhaCungCap" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="NhaCungCap" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@TenTG" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TenTG" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MaTL" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaTL" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Thue" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Thue" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SoLuong" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SoLuong" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT MaSach, TenSach, GiaMua, GiaBan, DonVi, NhaCungCap, TenTG, MaTL, Thue, SoLuong FROM dbo.Sach</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Sach] SET [MaSach] = @MaSach, [TenSach] = @TenSach, [GiaMua] = @GiaMua, [GiaBan] = @GiaBan, [DonVi] = @DonVi, [NhaCungCap] = @NhaCungCap, [TenTG] = @TenTG, [MaTL] = @MaTL, [Thue] = @Thue, [SoLuong] = @SoLuong WHERE (([MaSach] = @Original_MaSach) AND ([TenSach] = @Original_TenSach) AND ([GiaMua] = @Original_GiaMua) AND ([GiaBan] = @Original_GiaBan) AND ((@IsNull_DonVi = 1 AND [DonVi] IS NULL) OR ([DonVi] = @Original_DonVi)) AND ([NhaCungCap] = @Original_NhaCungCap) AND ((@IsNull_TenTG = 1 AND [TenTG] IS NULL) OR ([TenTG] = @Original_TenTG)) AND ((@IsNull_MaTL = 1 AND [MaTL] IS NULL) OR ([MaTL] = @Original_MaTL)) AND ((@IsNull_Thue = 1 AND [Thue] IS NULL) OR ([Thue] = @Original_Thue)) AND ([SoLuong] = @Original_SoLuong));
SELECT MaSach, TenSach, GiaMua, GiaBan, DonVi, NhaCungCap, TenTG, MaTL, Thue, SoLuong FROM Sach WHERE (MaSach = @MaSach)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MaSach" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaSach" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@TenSach" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TenSach" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GiaMua" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GiaMua" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@GiaBan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GiaBan" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@DonVi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DonVi" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@NhaCungCap" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="NhaCungCap" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@TenTG" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TenTG" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@MaTL" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaTL" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Thue" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Thue" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SoLuong" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SoLuong" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MaSach" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaSach" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_TenSach" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TenSach" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GiaMua" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GiaMua" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_GiaBan" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="GiaBan" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DonVi" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DonVi" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_DonVi" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="DonVi" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_NhaCungCap" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="NhaCungCap" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TenTG" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TenTG" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_TenTG" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TenTG" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MaTL" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MaTL" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_MaTL" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="MaTL" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_Thue" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Thue" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Thue" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Thue" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SoLuong" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SoLuong" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="MaSach" DataSetColumn="MaSach" />
              <Mapping SourceColumn="TenSach" DataSetColumn="TenSach" />
              <Mapping SourceColumn="GiaMua" DataSetColumn="GiaMua" />
              <Mapping SourceColumn="GiaBan" DataSetColumn="GiaBan" />
              <Mapping SourceColumn="DonVi" DataSetColumn="DonVi" />
              <Mapping SourceColumn="NhaCungCap" DataSetColumn="NhaCungCap" />
              <Mapping SourceColumn="TenTG" DataSetColumn="TenTG" />
              <Mapping SourceColumn="MaTL" DataSetColumn="MaTL" />
              <Mapping SourceColumn="Thue" DataSetColumn="Thue" />
              <Mapping SourceColumn="SoLuong" DataSetColumn="SoLuong" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="Hoadonnhap" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="Hoadonnhap" msprop:Generator_UserDSName="Hoadonnhap">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="ChiTietPhieuNhap" msprop:Generator_TableClassName="ChiTietPhieuNhapDataTable" msprop:Generator_TableVarName="tableChiTietPhieuNhap" msprop:Generator_TablePropName="ChiTietPhieuNhap" msprop:Generator_RowDeletingName="ChiTietPhieuNhapRowDeleting" msprop:Generator_RowChangingName="ChiTietPhieuNhapRowChanging" msprop:Generator_RowEvHandlerName="ChiTietPhieuNhapRowChangeEventHandler" msprop:Generator_RowDeletedName="ChiTietPhieuNhapRowDeleted" msprop:Generator_UserTableName="ChiTietPhieuNhap" msprop:Generator_RowChangedName="ChiTietPhieuNhapRowChanged" msprop:Generator_RowEvArgName="ChiTietPhieuNhapRowChangeEvent" msprop:Generator_RowClassName="ChiTietPhieuNhapRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="30" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MaPhieuNhap" msprop:Generator_ColumnVarNameInTable="columnMaPhieuNhap" msprop:Generator_ColumnPropNameInRow="MaPhieuNhap" msprop:Generator_ColumnPropNameInTable="MaPhieuNhapColumn" msprop:Generator_UserColumnName="MaPhieuNhap">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="SoLuong" msprop:Generator_ColumnVarNameInTable="columnSoLuong" msprop:Generator_ColumnPropNameInRow="SoLuong" msprop:Generator_ColumnPropNameInTable="SoLuongColumn" msprop:Generator_UserColumnName="SoLuong" type="xs:int" />
              <xs:element name="DonGia" msprop:Generator_ColumnVarNameInTable="columnDonGia" msprop:Generator_ColumnPropNameInRow="DonGia" msprop:Generator_ColumnPropNameInTable="DonGiaColumn" msprop:Generator_UserColumnName="DonGia" type="xs:int" />
              <xs:element name="ThanhTien" msprop:Generator_ColumnVarNameInTable="columnThanhTien" msprop:Generator_ColumnPropNameInRow="ThanhTien" msprop:Generator_ColumnPropNameInTable="ThanhTienColumn" msprop:Generator_UserColumnName="ThanhTien" type="xs:int" />
              <xs:element name="DonVi" msprop:Generator_ColumnVarNameInTable="columnDonVi" msprop:Generator_ColumnPropNameInRow="DonVi" msprop:Generator_ColumnPropNameInTable="DonViColumn" msprop:Generator_UserColumnName="DonVi" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Thue" msprop:Generator_ColumnVarNameInTable="columnThue" msprop:Generator_ColumnPropNameInRow="Thue" msprop:Generator_ColumnPropNameInTable="ThueColumn" msprop:Generator_UserColumnName="Thue" type="xs:int" minOccurs="0" />
              <xs:element name="MaNV" msprop:Generator_ColumnVarNameInTable="columnMaNV" msprop:Generator_ColumnPropNameInRow="MaNV" msprop:Generator_ColumnPropNameInTable="MaNVColumn" msprop:Generator_UserColumnName="MaNV">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TongTien" msprop:Generator_ColumnVarNameInTable="columnTongTien" msprop:Generator_ColumnPropNameInRow="TongTien" msprop:Generator_ColumnPropNameInTable="TongTienColumn" msprop:Generator_UserColumnName="TongTien" type="xs:int" />
              <xs:element name="NhaCungCap" msprop:Generator_ColumnVarNameInTable="columnNhaCungCap" msprop:Generator_ColumnPropNameInRow="NhaCungCap" msprop:Generator_ColumnPropNameInTable="NhaCungCapColumn" msprop:Generator_UserColumnName="NhaCungCap" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TenSach" msprop:Generator_ColumnVarNameInTable="columnTenSach" msprop:Generator_ColumnPropNameInRow="TenSach" msprop:Generator_ColumnPropNameInTable="TenSachColumn" msprop:Generator_UserColumnName="TenSach">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="PhieuNhap" msprop:Generator_TableClassName="PhieuNhapDataTable" msprop:Generator_TableVarName="tablePhieuNhap" msprop:Generator_TablePropName="PhieuNhap" msprop:Generator_RowDeletingName="PhieuNhapRowDeleting" msprop:Generator_RowChangingName="PhieuNhapRowChanging" msprop:Generator_RowEvHandlerName="PhieuNhapRowChangeEventHandler" msprop:Generator_RowDeletedName="PhieuNhapRowDeleted" msprop:Generator_UserTableName="PhieuNhap" msprop:Generator_RowChangedName="PhieuNhapRowChanged" msprop:Generator_RowEvArgName="PhieuNhapRowChangeEvent" msprop:Generator_RowClassName="PhieuNhapRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="MaPhieuNhap" msprop:Generator_ColumnVarNameInTable="columnMaPhieuNhap" msprop:Generator_ColumnPropNameInRow="MaPhieuNhap" msprop:Generator_ColumnPropNameInTable="MaPhieuNhapColumn" msprop:Generator_UserColumnName="MaPhieuNhap">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MaNV" msprop:Generator_ColumnVarNameInTable="columnMaNV" msprop:Generator_ColumnPropNameInRow="MaNV" msprop:Generator_ColumnPropNameInTable="MaNVColumn" msprop:Generator_UserColumnName="MaNV">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TongTien" msprop:Generator_ColumnVarNameInTable="columnTongTien" msprop:Generator_ColumnPropNameInRow="TongTien" msprop:Generator_ColumnPropNameInTable="TongTienColumn" msprop:Generator_UserColumnName="TongTien" type="xs:int" />
              <xs:element name="Ngay" msprop:Generator_ColumnVarNameInTable="columnNgay" msprop:Generator_ColumnPropNameInRow="Ngay" msprop:Generator_ColumnPropNameInTable="NgayColumn" msprop:Generator_UserColumnName="Ngay" type="xs:dateTime" />
              <xs:element name="NhaCungCap" msprop:Generator_ColumnVarNameInTable="columnNhaCungCap" msprop:Generator_ColumnPropNameInRow="NhaCungCap" msprop:Generator_ColumnPropNameInTable="NhaCungCapColumn" msprop:Generator_UserColumnName="NhaCungCap" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Sach" msprop:Generator_TableClassName="SachDataTable" msprop:Generator_TableVarName="tableSach" msprop:Generator_TablePropName="Sach" msprop:Generator_RowDeletingName="SachRowDeleting" msprop:Generator_RowChangingName="SachRowChanging" msprop:Generator_RowEvHandlerName="SachRowChangeEventHandler" msprop:Generator_RowDeletedName="SachRowDeleted" msprop:Generator_UserTableName="Sach" msprop:Generator_RowChangedName="SachRowChanged" msprop:Generator_RowEvArgName="SachRowChangeEvent" msprop:Generator_RowClassName="SachRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="MaSach" msprop:Generator_ColumnVarNameInTable="columnMaSach" msprop:Generator_ColumnPropNameInRow="MaSach" msprop:Generator_ColumnPropNameInTable="MaSachColumn" msprop:Generator_UserColumnName="MaSach">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TenSach" msprop:Generator_ColumnVarNameInTable="columnTenSach" msprop:Generator_ColumnPropNameInRow="TenSach" msprop:Generator_ColumnPropNameInTable="TenSachColumn" msprop:Generator_UserColumnName="TenSach">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="GiaMua" msprop:Generator_ColumnVarNameInTable="columnGiaMua" msprop:Generator_ColumnPropNameInRow="GiaMua" msprop:Generator_ColumnPropNameInTable="GiaMuaColumn" msprop:Generator_UserColumnName="GiaMua" type="xs:int" />
              <xs:element name="GiaBan" msprop:Generator_ColumnVarNameInTable="columnGiaBan" msprop:Generator_ColumnPropNameInRow="GiaBan" msprop:Generator_ColumnPropNameInTable="GiaBanColumn" msprop:Generator_UserColumnName="GiaBan" type="xs:int" />
              <xs:element name="DonVi" msprop:Generator_ColumnVarNameInTable="columnDonVi" msprop:Generator_ColumnPropNameInRow="DonVi" msprop:Generator_ColumnPropNameInTable="DonViColumn" msprop:Generator_UserColumnName="DonVi" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NhaCungCap" msprop:Generator_ColumnVarNameInTable="columnNhaCungCap" msprop:Generator_ColumnPropNameInRow="NhaCungCap" msprop:Generator_ColumnPropNameInTable="NhaCungCapColumn" msprop:Generator_UserColumnName="NhaCungCap">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TenTG" msprop:Generator_ColumnVarNameInTable="columnTenTG" msprop:Generator_ColumnPropNameInRow="TenTG" msprop:Generator_ColumnPropNameInTable="TenTGColumn" msprop:Generator_UserColumnName="TenTG" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MaTL" msprop:Generator_ColumnVarNameInTable="columnMaTL" msprop:Generator_ColumnPropNameInRow="MaTL" msprop:Generator_ColumnPropNameInTable="MaTLColumn" msprop:Generator_UserColumnName="MaTL" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Thue" msprop:Generator_ColumnVarNameInTable="columnThue" msprop:Generator_ColumnPropNameInRow="Thue" msprop:Generator_ColumnPropNameInTable="ThueColumn" msprop:Generator_UserColumnName="Thue" type="xs:int" minOccurs="0" />
              <xs:element name="SoLuong" msprop:Generator_ColumnVarNameInTable="columnSoLuong" msprop:Generator_ColumnPropNameInRow="SoLuong" msprop:Generator_ColumnPropNameInTable="SoLuongColumn" msprop:Generator_UserColumnName="SoLuong" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:ChiTietPhieuNhap" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="PhieuNhap_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:PhieuNhap" />
      <xs:field xpath="mstns:MaPhieuNhap" />
    </xs:unique>
    <xs:unique name="Sach_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Sach" />
      <xs:field xpath="mstns:MaSach" />
    </xs:unique>
  </xs:element>
  <xs:annotation>
    <xs:appinfo>
      <msdata:Relationship name="CTPN_01" msdata:parent="PhieuNhap" msdata:child="ChiTietPhieuNhap" msdata:parentkey="MaPhieuNhap" msdata:childkey="MaPhieuNhap" msprop:Generator_UserChildTable="ChiTietPhieuNhap" msprop:Generator_ChildPropName="GetChiTietPhieuNhapRows" msprop:Generator_UserRelationName="CTPN_01" msprop:Generator_RelationVarName="relationCTPN_01" msprop:Generator_UserParentTable="PhieuNhap" msprop:Generator_ParentPropName="PhieuNhapRow" />
    </xs:appinfo>
  </xs:annotation>
</xs:schema>